<!--交通事故查询-->
<template>
<div class="public-common">
    <div class="public-title">请选择查询条件</div>
    <el-form :model="form" label-width="120px">
        <el-row>

            <el-col :span="12">
                <el-form-item label="名称">
                    <el-input size="small" v-model="form.ming"  ></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                 <el-button type="primary" style=" margin-left: 10px;">搜索</el-button>
                 <el-button type="primary" style=" margin-left: 10px;">打印</el-button>
                 <el-button type="primary" style=" margin-left: 10px;">导出Excel</el-button>
            </el-col>
        </el-row>
    </el-form>
    <div class="public-title" style="margin-top: 20px;">交通事故列表</div>
    <el-table :data="tabledata" size="mini" border stripe header-row-class-name="textcenter">
            <el-table-column
                label="发生时间" fixed="left" prop="a1">
            </el-table-column>
            <el-table-column
                label="发生地点" prop="a2">
            </el-table-column>
            <el-table-column
                label="车牌号" prop="a3">
            </el-table-column>
            <el-table-column
                label="车型" prop="a4">
            </el-table-column>
            <el-table-column
                label="对方车牌号" prop="a5">
            </el-table-column>
            <el-table-column
                label="对方车型" prop="a6">
            </el-table-column>
            <el-table-column
                label="对方车辆单位" prop="a7">
            </el-table-column>
            <el-table-column
                label="对方司机姓名" prop="a8">
            </el-table-column>
            <el-table-column
                label="对方驾驶证编号" prop="a9">
            </el-table-column>
            <el-table-column
                label="事故类型" prop="a10">
            </el-table-column>
            <el-table-column
                label="受伤人数" prop="a11">
            </el-table-column>
            <el-table-column
                label="死亡人数" prop="a12">
            </el-table-column>
            <el-table-column
                label="责任划分" prop="a13">
            </el-table-column>
            <el-table-column
                label="定损金额" prop="a14">
            </el-table-column>
            <el-table-column
                label="车损部位" prop="a15">
            </el-table-column>
            <el-table-column
                label="赔付金额" prop="a16">
            </el-table-column>
            <el-table-column
                label="收到材料日期" prop="a17">
            </el-table-column>
            <el-table-column
                label="提交保险公司日期" prop="a18">
            </el-table-column>
            <el-table-column
                label="调解机关" prop="a19">
            </el-table-column>
            <el-table-column
                label="事故登记时间" prop="a20">
            </el-table-column>
            <el-table-column
                label="结案时间" prop="a21">
            </el-table-column>
            <el-table-column
                label="经办人" prop="a22">
            </el-table-column>
            <el-table-column
                label="注销状态" prop="a23">
            </el-table-column>
            <el-table-column
                label="备注" prop="a24">
            </el-table-column>

        </el-table>
        <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="page.now"
        :page-sizes="page.sizes"
        :page-size="page.pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="page.total" style="margin-top:10px;">
        </el-pagination>
</div>
</template>

<script>
export default {
    data(){
        return {
              form:{
                  ming:'',
              },
              tabledata:[
                {
                    a1: '2018-11-10',
                    a2: '西安南站',
                    a3: '陕A12367',
                    a4: '宝马',
                    a5: '陕A58491',
                    a6: '奔驰',
                    a7: '西安南站',
                    a8: '2018-11-10',
                    a9: '已解决',
                    a10: '碰撞',
                    a11: '1人',
                    a12: '无',
                    a13: '本车全责',
                    a14: '￥300',
                    a15: '车前部',
                    a16: '￥300',
                    a17: '2018-11-10',
                    a18: '2018-11-10',
                    a19: '西安交通大队',
                    a20: '2018-11-10',
                    a21: '2018-11-10',
                    a22: '丁建国',
                    a23: '2018-11-10',
                    a24: '暂无',
                },
              ],
              page:{
                now:1,
                pagesize:10,
                sizes:[2,10, 20, 50, 100],
                total:0,
                key:''
              },

        }
    },
    methods:{
        search(){
            alert("search")
        },
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }

    }
}
</script>

<style>
  .el-form-item .el-form-item__label{ width: 90px !important;}
  .el-form-item .el-form-item__content{ margin-left: 90px !important;}
.public-common .el-form-item .el-input{ width: 100%;}
.public-title{line-height: 30px;background-color: #deecfd;padding:0 10px;margin-bottom:20px;color: #15428F}

</style>
